package cn.green.core.front;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

/**
 * 前端组件
 */
public interface QFront {

    JSONArray buildTitle(String source, String scheme, String tableName);

    JSONObject buildFormInsert(String source, String scheme, String tableName);

    JSONObject buildFormUpdate(String source, String scheme, String tableName);

    JSONObject buildFormSelect(String source, String scheme, String tableName);


    /**
     * 建造候选查询条件列表
     * @param tableName 表名
     * @return 候选查询条件
     */
    JSONArray buildConditionCandidate(String source, String scheme, String tableName);

}
